package com.proposition.commons.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

/**
 * ${DESCRIPTION}
 *
 * @author 杨凯
 * @create 2017-12-08 15:18
 **/
@TableName("exam_category")
public class ExamCategory extends Model<ExamCategory> {
	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@TableId
	private Integer id;
	private String name;
	private Integer classId;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getClassId() {
		return classId;
	}

	public void setClassId(Integer classId) {
		this.classId = classId;
	}

	@Override
	public String toString() {
		return "ExamCategory{" +
				"id=" + id +
				", name='" + name + '\'' +
				", classId=" + classId +
				'}';
	}
}
